#include "stdio.h"
#include "string.h"
int longestCommonString(char* pStr1, char* pStr2)
{
    int i = 0, j = 0;
    int length1 = 0;
    int length2 = 0;

    length1 = strlen(pStr1);
    length2 = strlen(pStr2);

    if(length1 == 0 || length2 == 0)
        return 0;

    // init_record matrix
    LCS_length = (int**)(new int[length1])
    for( i = 0; i< length1; ++i)
        LCS_length[i] = (int*) new int[length2];
    for(i = 0; i<length1; ++i)
        for (j = 0; j < length2; ++j)
        {
            LCS_length[i][j] = 0;
        }
    
    //init


}